#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <time.h>

int
main(int argc, char **argv)
{
	register int fast;
	int slow;
	clock_t cl;

	slow = fast = INT_MIN;
	cl = clock();
	while (slow < INT_MAX)
		slow++;
	printf("slow (stack): from INT_MIN to INT_MAX in %g seconds\n", (double) (clock() - cl) / CLOCKS_PER_SEC);

	cl = clock();
	while (fast < INT_MAX)
		fast++;
	printf("fast (registers): from INT_MIN to INT_MAX in %g seconds\n", (double) (clock() - cl) / CLOCKS_PER_SEC);

	return 0;
}
